<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Rag Hu
 * Created Time: 2019/7/26 14:45
 * Modified Time: 2019/7/26 14:45
 * Version: 2.0
 */

namespace App\Modules\Partner\Validators;


use Flower\Core\Repository\Contracts\ValidatorInterface;
use Flower\Core\Repository\Validator\LaravelValidator;

class UserWithdrawValidator extends LaravelValidator
{
    protected $rules = [
        ValidatorInterface::RULE_CREATE => [
            'user_id' => 'required|numeric',
            'scene' => 'required|numeric',
            'amount' => 'required|numeric',
            'payment' => 'required|numeric',
            'real_name' => 'required|between:1,10',
            'account' => 'required|between:1,50',
        ]
    ];

    protected $messages = [
        'real_name.required' => '真实姓名不能为空',
        'real_name.between' => '真实姓名请输入1-10个字符',

        'account.required' => '账号不能为空',
        'account.between' => '账号请输入1-50个字符',

        'payment.required' => '支付方式不能为空',
    ];
}